//---------------------------------------------------------------------------
// Name:	IAPmgr.h
// Desc:	Header of IAPmgr
// Author:	D.C
// Date:	15:54 2009-11-21
//---------------------------------------------------------------------------


#ifndef _IAPMGR_H_
#define _IAPMGR_H_
#include <badesca.h>
#ifndef SAFE_DELETE
#define SAFE_DELETE( x ) \
{ \
    if (( x ) != NULL ) \
    { \
    delete ( x ); \
    ( x ) = NULL; \
    } \
}
#endif
_LIT(KNETIAP,"meteor_net");
_LIT(KWAPIAP,"meteor_wap");

void Create_IAPs();
void Load_IAPs(CDesCArray* aItems);
TInt IAP_By_Name(const TDesC& aIapName);
TInt Load_IAP_ID(TDesC& aFile);
void Save_IAP_ID(TDesC& aFile,TInt aIap);
TInt GetProxy(TUint32 iap,TDes& proxy,TUint32& port,TBool& isgprs);
#endif
